<?php $ticketArray = numberofDays();?>
<?php if($type=="course"){ $addDropdownArray = array('Before the class', 'After the class');} else {$addDropdownArray = array('Before the class');}?>
<table width="68%" border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td width="65%" align="left" valign="top">Tickets can be booked up to</td>
    <td width="5%" align="left" valign="top"><?php echo $form->dropDownList($model, 'no_of_days', $ticketArray, array('style'=>'width:70px;')); ?></td>
    <td width="7%" align="left" valign="top">Days</td>
   <td width="5%" align="left" valign="top"><?php echo $form->dropDownList($model, 'no_of_hours', $ticketArray, array('style'=>'width:70px;')); ?></td>
    <td width="8%" align="left" valign="top">Hours</td>
    <td width="10%" align="left" valign="top"><?php echo $form->dropDownList($model, 'action', $addDropdownArray, array('style'=>'width:150px;')); ?></td>
  </tr>
</table>